
<div ng-controller="RepairScheduleCtrl">
	
<div ng-include="'/templates/paramsSelect.html'"></div>
	<div class="page-heading">
		<ul class="breadcrumb">
			<li><a href="javascript:">报表管理</a></li>
			<li><a href="javascript:">维修报表</a></li>
			<li class="active" ng-hide="menuName">维修进度</li>
			<li class="active" ng-show="menuName" ng-bind="menuName"></li>
			<span style="margin-right:10px;"  class="btn btn-danger btn-xs pull-right btn-flag " ng-show="flag" ng-click="delFlag('/repairschedule/repairschedule/')"><i class="fa fa-times"></i> 删除 </span>
			<span style="margin-right:10px;"  class="btn btn-info btn-xs pull-right btn-flag " ng-click="addFlag('#/repair/repairschedule/')"><i class="fa fa-star"></i> 收藏 </span>
		
		</ul>
	</div>
	<!-- 页面头部  end-->

	<!--页面内容显示区域-->
	<div class="wrapper">


		<div class="row">
			<div class="col-sm-12">
				<!--表格显示区域-->
				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						维修进度查询条件
						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起-->
							<button type="button" class="btn btn-success pull-left" ng-click="SearchData()" 
							style="margin-left: 5px;">
								<i class="fa fa-search"></i> 查询
							</button>
							<button type="button" class="btn btn-info  pull-left" ng-click="ExportData()" 
							style="margin-left: 5px;">
								<i class="fa fa-table"></i> 导出EXCEL
							</button> <a href="javascript:" class="fa fa-chevron-up form_display"></a>

						</span>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal form_hide">
						<div class="row">
                        	 
                        	<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">事业部</label>
										<div class="col-lg-8 col-sm-7">
										<input type="text" id="group_name" ng-keyup="clearGroup()" name="group_name"   class="form-control select_edit form_params" />
                                            <ul class="select_list">
                                                  <li ng-repeat="e in groups" ng-click='LoadBrands(e.group_name)' val_code="{{e.group_name}}" val_name="{{e.group_name}}">{{e.group_name}}</li>
                                            </ul>  
                                            </div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">店面品牌</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" id="entity_brand_name"   ng-keyup="clearGroupBrand()" name="entity_brand_name" class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in gBrands" ng-click='LoadEntitys(e)' val_code="{{e.brand_code}}" val_name="{{e.brand_name}}">{{e.brand_name}}</li>
                                            </ul> 
									</div>
								</div>
							</div>
							
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label" for="inputEmail1">店面信息</label>
									<div class="col-lg-8 col-sm-7">
											<input type="text" id="entity_name"  ng-keyup="clearGroupBrandEntity()" name="entity_name" class="form-control select_edit form_params" value=""/>
                                            <ul class="select_list">
                                                  <li ng-repeat="e in entitys"  ng-click='LoadEntityBrands(e)' val_code="{{e.entity_code}}" val_name="{{e.entity_name}}">{{e.entity_name}}({{e.entity_code}})</li>
                                            </ul>  
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="sold_by">服务顾问</label>
									<div class="col-lg-8 col-sm-7">
										<input type="text" name="employee_name" id="employee_name" class="form-control select_edit form_params" value=""/>
                                        <ul class="select_list">
                                              <li ng-repeat="b in servicer" val_code="{{b.employee_no}}" val_name="{{b.employee_name}}">{{b.employee_name}}</li>
                                        </ul>  
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">车牌号</label>
									<div class="col-lg-8 col-sm-7">
										<input name="license" class="form-control form_params">
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">工单号</label>
									<div class="col-lg-8 col-sm-7">
										<input name="ro_no" type="text" class="form-control form_params">
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">开单时间</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range ">
											<input type="text" name="found_date1" class="form-control form_params" id="found_date1" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'found_date2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											 <input type="text" name="found_date2" class="form-control form_params" id="found_date2" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'found_date1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							
							<div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">预计完成时间</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range ">
											<input type="text" name="estimate_end_time1" class="form-control form_params" id="estimate_end_time1" onFocus="WdatePicker({maxDate:'#F{$dp.$D(\'estimate_end_time2\')||\'2020-10-01\'}'})">
										</div>
									</div>
								</div>
							</div>
                            
                            <div class="col-md-3">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label text-center" for="inputEmail1">至</label>
									<div class="col-lg-8 col-sm-7">
										<div data-date-format="yyyy-mm-dd" data-date="2016-5-15" class="input-large custom-date-range">
											 <input type="text" name="estimate_end_time2" class="form-control form_params" id="estimate_end_time2" onFocus="WdatePicker({minDate:'#F{$dp.$D(\'estimate_end_time1\')}',maxDate:'2020-10-01'})">
										</div>
									</div>
								</div>
							</div>
							
							<div class="col-md-3 ">
								<div class="form-group">
									<label class="col-lg-4 col-sm-5 control-label"
										for="inputEmail1">是否逾期交车</label>
									<div class="col-lg-8 col-sm-7">
										<select name="isover"  class="form-control form_params">
											<option></option>
											<option ng-repeat="b in is_colse" value="{{b.status_code}}">{{b.status_desc}}</option>
										</select>
									</div>
								</div>
							</div>
							
						</div>
					</div>
				</section>

				<section class="panel">
					<!--区块头 显示表格名称和功能按钮-->
					<header class="panel-heading">
						维修进度
						<headshow></headshow>
						<div class="option_check_list" style="display: inline-block;"></div>
                        <span style="font-size:12px; margin-left:30px;"><b>备注：</b><span style="background-color:#FCF8E3">米黄色为逾期交车</span></span>
						<!--控制按钮-->
						<span class="tools pull-right"> <!--收起--> <a
                                href="javascript:" class="fa fa-chevron-down"></a>
						</span>
						<div class="pull-right"
							style="margin-right: 10px; margin-top: -6px; display: inline-block">
							<button type="button" class="btn btn-danger btn-sm " href="#paramsSelect"
								data-toggle="modal">
								<i class="fa fa-plus"></i> 在结果集中筛选
							</button>
							<button type="button" class="btn btn-success btn-sm"
								id="search_table" ng-click="SearchData();">
								<i class="fa fa-search"></i> 查询表格
							</button>
						</div>
					</header>
					<!--区块body 显示表格内容-->
					<div class="panel-body form-horizontal ">

						<div class="adv-table" style="overflow-x: scroll">
							<table id="repairscheduleTable"
								class="table table-striped  nowrap  dataTable no-footer table_store table-hover float_head"
								cellspacing="0" width="100%">
								<thead>
									<tr>
										<th ng-show="!cols.contains('index')" column="index">序号</th>
										<th ng-show="!cols.contains('entity_code')" column="entity_code">店面编号</th>
										<th ng-show="!cols.contains('entity_name')" column="entity_name">店面名称</th>
										<th ng-show="!cols.contains('entity_brand_name')" column="entity_brand_name">店面品牌</th>
										<th ng-show="!cols.contains('group_name')" column="group_name">事业部</th>
										<th ng-show="!cols.contains('ro_no')" column="ro_no">工单号</th>
										<th ng-show="!cols.contains('license')" column="license">车牌号</th>
										<th ng-show="!cols.contains('employee_name')" column="employee_name">服务专员</th>
										<!--<th ng-show="!cols.contains('first_assign_technician_name')" column="first_assign_technician_name">派工技师</th>
										<th ng-show="!cols.contains('finish_user')" column="finish_user">质检人</th>-->
										<th ng-show="!cols.contains('repair_type_name')" column="repair_type_name">维修类型</th>
										<th ng-show="!cols.contains('ro_status_desc')" column="ro_status_desc">工单状态</th>
										<th qtype='date' ng-show="!cols.contains('ro_create_date')" column="ro_create_date">开单时间</th>
										<th qtype='date' ng-show="!cols.contains('ds_end_time')" column="ds_end_time">定损结束时间</th>
										<th qtype='double' ng-show="!cols.contains('ds_amount')" column="ds_amount">定损金额</th>
										<th qtype='double' ng-show="!cols.contains('paint_metal_amount')" column="paint_metal_amount">油漆钣件数量</th>
										<th qtype='date' ng-show="!cols.contains('assign_time')" column="assign_time">已派工</th>
										<th qtype='date' ng-show="!cols.contains('first_send_time')" column="first_send_time">首次领料时间</th>	
										<th qtype='date' ng-show="!cols.contains('last_send_time')" column="last_send_time">领料截止时间</th>
										<!-- 质检时间 -->
										<th qtype='date' ng-show="!cols.contains('complete_time')" column="complete_time">质检时间</th>	
										<th qtype='date' ng-show="!cols.contains('for_balance_time')" column="for_balance_time">已提交结算</th>
										<th qtype='date' ng-show="!cols.contains('balance_time')" column="balance_time">已结算</th>	
										<th qtype='date' ng-show="!cols.contains('square_date')" column="square_date">已结清</th>	
										<th qtype='date' ng-show="!cols.contains('estimate_end_time')" column="estimate_end_time">工单预估完工时间</th>	
									</tr>
								</thead>
								<tbody>
									<tr ng-repeat="c in repairscheduleReports" ng-style="setColor(c.isover)">
										<td ng-show="!cols.contains('index')" class="">{{$index + 1 }}</td>
										<td ng-show="!cols.contains('entity_code')" class="">{{c.entity_code}}</td>
										<td ng-show="!cols.contains('entity_name')" class="">{{c.entity_name}}</td>
										<td ng-show="!cols.contains('entity_brand_name')" class="">{{c.entity_brand_name}}</td>
										<td ng-show="!cols.contains('group_name')" class="">{{c.group_name}}</td>
										<td ng-show="!cols.contains('ro_no')" class="">{{c.ro_no}}</td>
										<td ng-show="!cols.contains('license')" class="">{{c.license}}</td>
										<td ng-show="!cols.contains('employee_name')" class="">{{c.employee_name}}</td>
										<!--<td ng-show="!cols.contains('first_assign_technician_name')" class="left">{{c.first_assign_technician_name}}</td>
										<td ng-show="!cols.contains('finish_user')" class="left">{{c.finish_user}}</td>-->
										<td ng-show="!cols.contains('repair_type_name')" class="">{{c.repair_type_name}}</td>
										<td ng-show="!cols.contains('ro_status_desc')" class="">{{c.ro_status_desc}}</td>
										<td ng-show="!cols.contains('ro_create_date')" class="">{{c.ro_create_date | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
										<td ng-show="!cols.contains('ds_end_time')" class="">{{c.ds_end_time | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
										<td ng-show="!cols.contains('ds_amount')" class="">{{c.ds_amount}}</td>
										<td ng-show="!cols.contains('paint_metal_amount')" class="">{{c.paint_metal_amount}}</td>
										<td ng-show="!cols.contains('assign_time')" class="">{{c.assign_time | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
										<td ng-show="!cols.contains('first_send_time')" class="">{{c.first_send_time | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
										<td ng-show="!cols.contains('last_send_time')" class="">{{c.last_send_time | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
										<!-- 质检时间 -->
										<td ng-show="!cols.contains('complete_time')" class="left">{{c.complete_time | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
										<td ng-show="!cols.contains('for_balance_time')" class="">{{c.for_balance_time | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
										<td ng-show="!cols.contains('balance_time')" class="">{{c.balance_time | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
										<td ng-show="!cols.contains('square_date')" class="">{{c.square_date | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
										<td ng-show="!cols.contains('estimate_end_time')" class="">{{c.estimate_end_time | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
									</tr>

								</tbody>
							</table>
							<div class="no-items" ng-show="pagination.totalItems <= 0">暂无数据</div>
						</div>
						<tm-pagination conf="pagination"></tm-pagination>
					</div>
				</section>
				<!--表格显示区域-->

			</div>
		</div>
	</div>
</div>

<form id="export_form" action="repairschedule/export"  method="post">
	<input type="hidden" name="keys" id="keys" />
	<input type="hidden" name="names" id="names" /> 
	<input type="hidden" name="params" id="params" />
	<input type="hidden" name="search_opt" id="search_opt" /> 
	<input type="hidden" name="file_name" id="file_name" value="维修进度"/>
</form>



